package com.lucksoft.core.constant;

import java.io.Serializable;

public class BaseOperateConstant implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	// 成功信息
	public final static int SUCCESS_CODE = 0;
	public final static String SUCCESS_MSG = "操作成功";

	// 失败信息
	public final static int FAILURE_CODE = 1;
	public final static String FAILURE_MSG = "操作失败";

	// 无参数信息
	public final static String NO_PARAM_MSG = "无参数";

	// 无操作权限信息
	public final static int UNAUTHORIZED_CODE = 401;
	public final static String UNAUTHORIZED_MSG = "未授权，未登录";

	// 被禁止信息
	public static final int FORBIDDEN_CODE = 403;
	public final static String FORBIDDEN_MSG = "被禁止，无权限或格式错误";

	// 不能找到信息
	public static final int NOT_FOUND_CODE = 404;
	public final static String NOT_FOUND_MSG = "请求错误，未找到资源或者接口";

	// 请求超时
	public static final int TIMEOUT_CODE = 408;
	public final static String TIMEOUT_MSG = "请求超时";

	// 请求过于频繁
	public static final int TOO_MANY_REQUESTS_CODE = 429;
	public final static String TOO_MANY_REQUESTS_MSG = "请求过于频繁，请稍后再试";

}